﻿using System.Windows;
using System.Windows.Shapes;
using Drawer.Common;

namespace Drawer.Shapes
{
    class FHexagon : BaseShape
    {
        public override Shape GetShape()
        {
            Polyline newPolyline = new Polyline();
            newPolyline.Points.Add(new Point(Dimension.Width / 4, 0));
            newPolyline.Points.Add(new Point(Dimension.Width * 3 / 4, 0));
            newPolyline.Points.Add(new Point(Dimension.Width, Dimension.Height / 2));
            newPolyline.Points.Add(new Point(Dimension.Width * 3 / 4, Dimension.Height));
            newPolyline.Points.Add(new Point(Dimension.Width / 4, Dimension.Height));
            newPolyline.Points.Add(new Point(0, Dimension.Height / 2));
            newPolyline.Points.Add(new Point(Dimension.Width / 4, 0));
            newPolyline.Margin = new Thickness(StartPoint.X, StartPoint.Y, 0, 0);
            newPolyline.Stroke = OutlineColor;
            newPolyline.Fill = FillColor;
            newPolyline.StrokeThickness = StrokeSize;

            return newPolyline;
        }
    }
}
